<?php
/**
 * The Sidebar containing the main widget areas.
 *
 * @package vertiMagazine theme
 */
global $vertimagazine_options;

?>
		<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
		<div id="sidebar" class="widget-area" role="complementary">
			<?php dynamic_sidebar( 'sidebar-1' ); ?>
            
            <?php if ( isset( $vertimagazine_options["fanpage_fb"] ) && $vertimagazine_options["fanpage_fb"] ) : ?>
            <iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2F<?php echo $vertimagazine_options["fanpage_fb"]; ?>&amp;width&amp;height=290&amp;colorscheme=light&amp;show_faces=true&amp;header=true&amp;stream=false&amp;show_border=true&amp;appId=593883327374053" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:290px;" allowTransparency="true"></iframe>
            <?php endif; ?>
            
		</div><!-- #sidebar -->
	<?php endif; ?>

        
